<html>
<head>
<title>ITControl Masisa</title>
<link rel="stylesheet" href="/itcontrol/com/visual/style.css">
</head>
	<body>
		<?php 
			
			include ("../menu.php");
			
			menu();
			navbar();
		?>
		<div id="div_form">
			<form id="form_main" name="form_main" method="post" action="user_edit_db.php">
				<?php 
					include ("../../db/database.php");
					
					$dbconnection = new connectDB();
					$query = mysql_query("SELECT * FROM tb_login WHERE name='Lucas'");
					$input = "";
					while($row = mysql_fetch_array($query)){
						$input = $input . "<label id='label_form'>Nome:</label>";
						$input = $input . "<input id='input_form' type='text' name='input_name' value='" . $row['name'] ."'/> <br/>";
					} 
					
					$dbconnection->disconnectDB();
					echo $input;
				?>			
					<input id="button_form" type="submit" name="submit_useredit" value="Alterar"/>
					<input id="button_form" type="submit" name="submit_useredit" value="Voltar"/>
			</form>
		</div>
	</body>
</html>